using UnityEngine;
using System.Collections;
using System.Collections.Generic;

public class GameManager : MonoBehaviour 
{
	public GameCamera _gameCam;
	public Player _player;
	public Player player
	{
		get { return _player; }	
	}

	private static GameManager _instance;
	public static GameManager Instance
	{
		get 	
		{
			return _instance;
		}
	}

    PlayMakerFSM _gameFSM;



	void Awake()
	{
		_instance = this;
        _gameFSM = GetComponent<PlayMakerFSM>();
	}
	
    public void finishCurState()
    {
        _gameFSM.SendEvent("FINISHED");
    }

    public void GotoArcadeMode()
    {
        _gameFSM.SendEvent("ArcadeMode");
    }
    public void GotoShopMode()
    {
        _gameFSM.SendEvent("ShopMode");
    }
    public void GotoMenu()
    {
        _gameFSM.SendEvent("main");
    }
}
